#!/user/bin/env python3
# -*- coding utf-8 -*-
'A base usage'
from datetime import date

__author__ = 'King'

import urllib
import urllib2


def RequestTest():
    url = "http://zhangliqing.cn"
    values = {"name": "King", "password": "123456"}
    headers = {'User-Agent': "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)", "Referer": "http://zhangliqing.cn"}
    data = urllib.urlencode(values)
    request = urllib2.Request(url, data, headers)
    response = urllib2.urlopen(request)
    page = response.read()
    print(page)


if __name__ == '__main__':
    RequestTest()
